package com.igoal.dao;

import java.util.Date;
import java.util.List;

import com.igoal.entity.UserGoalTask;

public interface UserGoalTaskDAO extends GenericDao<UserGoalTask, Long> {
	List<UserGoalTask> findByUserId(Long userId);
	
	List<UserGoalTask> findByUserGoalPk(Long userId, Long goalId);
	
	List<UserGoalTask> getUnCompleteTask(Long userId, Long goalId);
	
	List<UserGoalTask> getTasksInPeriodTime(Long userId, Long goalId, Date from, Date to, boolean finished);
}
